
/**
 * 1：左
 * 2：右
 * 3：下（加速）
 * 4：转
 * 5：落定
 */
export enum InputType {
    left = "1",
    right = "2",
    down = "3",
    rotate = "4",
    drop = "5",
    down_lift = "6"
}

/** 方块形状数据 */
export const SHAPE = [
    [
        [
            [0, 2, 0],
            [2, 2, 0],
            [0, 2, 0],
        ],
        [
            [0, 2, 0],
            [2, 2, 2],
        ],
        [
            [0, 2, 0],
            [0, 2, 2],
            [0, 2, 0]
        ],
        [
            [0, 0, 0],
            [2, 2, 2],
            [0, 2, 0]
        ]
    ],
    [
        [
            [2, 2, 0],
            [0, 2, 0],
            [0, 2, 0]
        ],
        [
            [0, 0, 2],
            [2, 2, 2]
        ],
        [
            [0, 2, 0],
            [0, 2, 0],
            [0, 2, 2]
        ],
        [
            [0, 0, 0],
            [2, 2, 2],
            [2, 0, 0]
        ]
    ],
    [
        [
            [0, 2, 0],
            [0, 2, 0],
            [2, 2, 0]
        ],
        [
            [2, 0, 0],
            [2, 2, 2]
        ],
        [
            [0, 2, 2],
            [0, 2, 0],
            [0, 2, 0]
        ],
        [
            [0, 0, 0],
            [2, 2, 2],
            [0, 0, 2]
        ]
    ],
    [
        [
            [2, 2, 0],
            [0, 2, 2]
        ],
        [
            [0, 0, 2],
            [0, 2, 2],
            [0, 2, 0]
        ]
    ],
    [
        [
            [0, 2, 2],
            [2, 2, 0]
        ],
        [
            [2, 0, 0],
            [2, 2, 0],
            [0, 2, 0]
        ]
    ],
    [
        [
            [2, 2],
            [2, 2]
        ]
    ],
    [
        [
            [0, 2],
            [0, 2],
            [0, 2],
            [0, 2]
        ],
        [
            [0, 0, 0, 0],
            [2, 2, 2, 2]
        ]
    ]
]


